Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

start-request documentation #14

Open
kengruven opened this issue Feb 15, 2024 · 1 comment
Open

start-request documentation #14

kengruven opened this issue Feb 15, 2024 · 1 comment

Comments

@kengruven
Copy link

The documentation for start-request says it's called like:

(start-request in	 	 	 	 
	 	out	 	 	 	 
 	 	http-version	 	 	 	 
 	 	method	 	 	 	 
 	 	path	 	 	 	 
 	 	heads)

In section 1.5, though, there's some sample code that says:

(define tx-data? (start-request in out method path rh "1.0"))

which is seemingly a different argument order.

@greghendershott
Copy link
Owner

Although I probably wrote that code 10 years ago and have nothing in my brain's L1 cache:

The documentation for start-request seems to match the arguments and contract of the actual function definition:

(define/contract/provide (start-request in out ver method path heads*)
  (input-port? output-port? (or/c "1.0" "1.1") string? string? string?
               . -> . boolean?)
  . . .

It looks like the example, in the section about call/requests, is wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants