Difference between revisions of "HTTPC:CreateContext"

From 3dbrew
Jump to navigation Jump to search
 
(One intermediate revision by one other user not shown)
Line 19: Line 19:
 
| 4
 
| 4
 
| URL data pointer
 
| URL data pointer
|}
 
 
=Response=
 
{| class="wikitable" border="1"
 
|-
 
!  Index Word
 
!  Description
 
|-
 
| 0
 
| Header code
 
|-
 
| 1
 
| Result code
 
|-
 
| 2
 
| HTTP context handle
 
 
|}
 
|}
  
Line 40: Line 24:
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
!  Memory state flags
 
!  Memory state flags
Bit
+
Value
 
|-
 
|-
 
| NONE (this causes an error)
 
| NONE (this causes an error)
Line 65: Line 49:
 
| PUT
 
| PUT
 
|7
 
|7
 +
|}
 +
 +
=Response=
 +
{| class="wikitable" border="1"
 +
|-
 +
!  Index Word
 +
!  Description
 +
|-
 +
| 0
 +
| Header code
 +
|-
 +
| 1
 +
| Result code
 +
|-
 +
| 2
 +
| HTTP context handle
 
|}
 
|}

Latest revision as of 19:45, 29 November 2016

Request[edit]

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

enum RequestMethod[edit]

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

Response[edit]

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