-
Updated
Jul 21, 2021 - JavaScript
HTTP
HTTP (Hypertext Transfer Protocol) is a request and response protocol used to send a request to a server and receive a response back in the form of a file. HTTP is the basis of data communication for the web. HTTPS is an evolution in HTTP, where the “S” stands for secure socket layer allowing communication in HTTP to be more secure.
Here are 1,487 public repositories matching this topic...
Context
This isn't really a feature request, as what I need is possible with nock as-is. But I spent several hours searching, reading old issues and searching through the source code to find the solution, so I thought this might help others.
I am testing code that accesses a service that sets the statusMessage of the response, as well as the statusCode. I am using nock to mock the server
From time to time i see ppl using data instead of body which is wrong.
happened just recently in node-fetch/node-fetch#481 (comment)
how do you feel about adding a little warning message that can only appear once. (kinda like node reports that you are using experimental apis)
if ('data' in bodyInit && notWarned) {
console.warn('use body i-
Updated
Aug 13, 2021 - JavaScript
-
Updated
Aug 8, 2021 - JavaScript
-
Updated
Aug 14, 2021 - JavaScript
Under lib/fetch/util.js we have a few helper methods that are pretty well documented in spec and and needs to be implemented:
- appendRequestOriginHeader
- appendFetchMetadata
- TAOCheck
- corsCheck
- crossOriginResourcePolicyCheck
- makePolicyContainer
- clonePolicyContainer
- determineRequestsReferrer
- blobToFormData
-
Updated
Aug 6, 2021 - JavaScript
What you did:
Create a route:
/orders/*
then set the delay to 2000ms.
What happened:
route not delayed when hit with another param beside *
/orders/1 not delayed

/orders/900 not delayed
/orders/* delayed
![image](https://user-images.githubusercontent.com/19
-
Updated
Jun 3, 2021 - JavaScript
-
Updated
Aug 5, 2021 - JavaScript
-
Updated
Aug 4, 2021 - JavaScript
-
Updated
Jul 14, 2021 - JavaScript
-
Updated
Apr 21, 2021 - JavaScript
-
Updated
Aug 5, 2021 - JavaScript
-
Updated
Jun 9, 2021 - JavaScript
-
Updated
Jan 3, 2021 - JavaScript
-
Updated
Aug 9, 2021 - JavaScript
-
Updated
Jul 20, 2021 - JavaScript
-
Updated
Jan 11, 2021 - JavaScript
-
Updated
Apr 15, 2021 - JavaScript
As http-server has grown, the list of commands has as well. The README lists them all out as a list, but at this point it would be more readable as a table.