Skip to content
#

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...

ig3
ig3 commented Apr 22, 2020

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

node-fetch
ronag
ronag commented Aug 14, 2021

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

Created by Tim Berners-Lee

Released 1989

Wikipedia
Wikipedia