Removed extra indentations.

This commit is contained in:
Jocelyn Fiat
2017-02-15 17:54:17 +01:00
parent 94f3c3b849
commit e0d3ceb4e8

View File

@@ -9,7 +9,7 @@ Nav: [Workbook](../workbook.md) :: [Handling Requests: Header Fields](../handlin
- [How to set status code](#status_set) - [How to set status code](#status_set)
- [How to redirect to a particular location.](#redirect) - [How to redirect to a particular location.](#redirect)
- [HTTP Status codes](#status) - [HTTP Status codes](#status)
- [Example Staus Codes](#example_1) - [Example Status Codes](#example_1)
- [Generic Search Engine](#example_2) - [Generic Search Engine](#example_2)
- [Response Header Fields](#header_fields) - [Response Header Fields](#header_fields)
@@ -167,7 +167,7 @@ Note: use `res.set_status_code({HTTP_STATUS_CODE}.bad_request)` rather than `res
<a name="example_1"></a> <a name="example_1"></a>
### Example Staus Codes ### Example Status Codes
Basic Service that builds a simple web page to show the most common status codes Basic Service that builds a simple web page to show the most common status codes
@@ -567,7 +567,7 @@ Connection: close
</html> </html>
``` ```
#### Resource searchs not found #### Resource search not found
``` ```
#>curl -i -H -v -X POST -d "query=Eiffel&engine=Google" http://localhost:9090/searchs #>curl -i -H -v -X POST -d "query=Eiffel&engine=Google" http://localhost:9090/searchs
@@ -644,9 +644,11 @@ features `add_XYZ` add headers that can lead to duplicated entries.
a_text_does_not_end_with_double_crlf: a_text.count > 4 implies not a_text.substring (a_text.count - 4, a_text.count).same_string ("%R%N%R%N") a_text_does_not_end_with_double_crlf: a_text.count > 4 implies not a_text.substring (a_text.count - 4, a_text.count).same_string ("%R%N%R%N")
ensure ensure
message_writable: message_writable message_writable: message_writable
```
helpers helpers
```eiffel
add_header (a_status_code: INTEGER_32; a_headers: detachable ARRAY [TUPLE [name: READABLE_STRING_8; value: READABLE_STRING_8]]) add_header (a_status_code: INTEGER_32; a_headers: detachable ARRAY [TUPLE [name: READABLE_STRING_8; value: READABLE_STRING_8]])
-- Put headers with status `a_status', and headers from `a_headers' -- Put headers with status `a_status', and headers from `a_headers'
require require