Skip to content

Commit

Permalink
Update README.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
gk-brown committed Oct 17, 2024
1 parent 334bb20 commit ca79fe6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ Path variables and body content are handled as described for [`WebService`](#web
Note that proxy types must be compiled with the `-parameters` flag so their method parameter names are available at runtime.

## JSONEncoder and JSONDecoder
The `JSONEncoder` and `JSONDecoder` classes are used internally by `WebService` and `WebServiceProxy` to serialize and deserialize request and response data. However, they can also be used directly by application logic. For example:
The `JSONEncoder` and `JSONDecoder` classes are used internally by `WebService` and `WebServiceProxy` to process request and response data. However, they can also be used directly by application logic. For example:

```java
var map = mapOf(
Expand Down Expand Up @@ -568,7 +568,7 @@ var templateEncoder = new TemplateEncoder(Examples.class, "example.html");
templateEncoder.write(map, System.out);
```

Given the following as input:
Given the following template as input:

```html
<html>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
/**
* Generates an index of all active services.
*/
@WebServlet(urlPatterns = {""}, loadOnStartup = 1)
@WebServlet(urlPatterns = {""}, loadOnStartup = Integer.MAX_VALUE)
public class IndexServlet extends HttpServlet {
/**
* Generates the service index.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

import static org.httprpc.kilo.util.Collections.*;

@WebServlet(urlPatterns = {"/test/*"}, loadOnStartup = 0)
@WebServlet(urlPatterns = {"/test/*"}, loadOnStartup = 1)
@MultipartConfig
public class TestService extends AbstractDatabaseService {
public interface A {
Expand Down

0 comments on commit ca79fe6

Please sign in to comment.