Difference between revisions of "HTTPC:CreateContext"

From 3dbrew
Jump to navigation Jump to search
(Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x00020082] |- | 1 | URL buffer size, including null-terminator. |- | 2 | u8, unkn...")
 
Line 12: Line 12:
 
|-
 
|-
 
| 2
 
| 2
| u8, unknown
+
| u8 RequestMethod
 
|-
 
|-
 
| 3
 
| 3
Line 35: Line 35:
 
| 2
 
| 2
 
| HTTP context handle
 
| HTTP context handle
 +
|}
 +
 +
== enum RequestMethod ==
 +
{| class="wikitable" border="1"
 +
!  Memory state flags
 +
!  Bit
 +
|-
 +
| NONE (this causes an error)
 +
| 0
 +
|-
 +
| GET
 +
| 1
 +
|-
 +
| POST <!-- These are a special case and different from 6/7 -->
 +
| 2
 +
|-
 +
| HEAD
 +
| 3
 +
|-
 +
| PUT <!-- These are a special case and different from 6/7 -->
 +
|4
 +
|-
 +
| DELETE
 +
|5
 +
|-
 +
| POST
 +
|6
 +
|-
 +
| PUT
 +
|7
 
|}
 
|}

Revision as of 01:09, 16 December 2014

Request

Index Word Description
0 Header code [0x00020082]
1 URL buffer size, including null-terminator.
2 u8 RequestMethod
3 (URLSize<<4) | 10
4 URL data pointer

Response

Index Word Description
0 Header code
1 Result code
2 HTTP context handle

enum RequestMethod

Memory state flags Bit
NONE (this causes an error) 0
GET 1
POST 2
HEAD 3
PUT 4
DELETE 5
POST 6
PUT 7