Một mục mã nguồn mở trong kho dữ liệu GitHub của TopGit: caolan/quip, 91 sao, JavaScript. A chainable API for response objects in node
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
// read posts.xml and pipe to response with mime type application/atom+xml
var feed = fs.createReadStream('posts.xml');
feed.pipe(res.atom());
The response is completed when data is passed to a status code or mime-type
function, when a redirect is performed, or when a stream is piped to the
response.
status - set status code of response manually, returns updated response
Status Codes
By default, the response will have the status code 200 (OK), this can
be updated using the following methods. Note that by passing some data
to these methods, the response will complete. If you don't pass data it will
return an updated response object, allowing you to chain calls together. If
the data passed is an object then it will be treated as JSON and the mime
type of the response will be updated accordingly.
Success
res.ok
res.created
res.accepted
res.noContent
Redirection
res.moved
res.redirect
res.found - alias for redirect
res.notModified
Client Error
res.badRequest
res.unauthorized
res.forbidden
res.notFound
res.notAllowed
res.conflict
res.gone
Server Error
res.error
Mime Types
By default, the response will have the mime-type text/html, this can
be updated using the following methods. Note that by passing some data
to these methods, the response will complete. If you don't pass data it will
return an updated response object, allowing you to chain calls together.
You can pass an object to the json and jsonp methods and it will be
stringified before sending.
res.text
res.plain
res.html
res.xhtml
res.css
res.xml
res.atom
res.rss
res.javascript
res.json
res.jsonp -- JSONP is a special case that always completes the request,
and overrides any previous status code calls. There is no reliable way for
a browser to interpret JSONP responses with a status code other than 200.
Any error or status information should be included in the JSONP response
itself. The jsonp method accepts 2 arguments, a callback name (string) and
some JSON data (either a string or an object literal).
caolan/quip có 91 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/caolan/quip. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
caolan/quip có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho caolan/quip. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
caolan/quip còn đang phát triển không?
Commit gần nhất trên caolan/quip là 3.9 năm trước (theo timestamp GitHub). Repo có 13 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
caolan/quip là gì?
caolan/quip (caolan/quip) là dự án JavaScript trên GitHub. Theo mô tả gốc: A chainable API for response objects in node
caolan/quip viết bằng ngôn ngữ gì?
caolan/quip chủ yếu viết bằng JavaScript. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về quip?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về quip.